﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ERPTemplate.Public.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <a href ="UpdateSort.aspx?tablename=User&id=ddd&type=new&queryname=default">test</a>
    </div>
    <div>
        <b>所有的Query</b><br />
        <asp:ListBox ID="ListBox_AllQuery" runat="server" Width="200px" Height="100px"></asp:ListBox> <br />
        <a href="FilterCustomize.aspx?type=new&tablename=User&id=ddd" target="_blank" >新建Query</a><br />
        <a href="#" id="EditQueryAnchor">修改选中Query</a>
    </div>

    <script src="/Javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#EditQueryAnchor").click(function() {
                var queryName = $("#ListBox_AllQuery").attr("value");
                if (queryName != "") {
                    window.open("FilterCustomize.aspx?type=edit&tablename=User&id=ddd&queryname=" + queryName, "editQuery");
                } 
            });
        });
    </script>
    </form>
</body>
</html>
